*** Settings ***
Documentation       通过ipmi接口测试openUBMC的BMC软件名称
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_BMC_Name

*** Variables ***
${get_bmc_name}             raw 0x30 0x92 0xdb 0x07 0x00 0x45
${expected_rc}              ${0}
${max_retries}              ${3}
${retry_interval}           1s


*** Test Cases ***
Get IPMI BMC Name
    [Documentation]    带认证的IPMI测试BMC名称
    [Tags]  Get_BMC_Name
    ${rc}    ${output}=  Run External Ipmi Command    ${get_bmc_name}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    db 07 00